import Vue from 'vue'
import Vuex from 'vuex'
import cart from './mudules/cart.js'
Vue.use(Vuex)

export default new Vuex.Store({
	state:{
		total:0  //商品数量
	},
	mutations:{
		settotal(state,data){
			state.total = data
		}
	},
	actions:{
		
	},
	modules:{
		cart
	}
})